package org.jeecg.modules.yks.dev.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 设备PLC配置管理
 * @Author: jeecg-boot
 * @Date:   2023-11-25
 * @Version: V1.0
 */
@Data
@TableName("yks_equipment_configuration_plc")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="yks_equipment_configuration_plc对象", description="设备PLC配置管理")
public class YksEquipmentConfigurationPlc implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**设备id*/
	@Excel(name = "设备id", width = 15)
    @ApiModelProperty(value = "设备id")
    private String equipmentId;
	/**参数id*/
	@Excel(name = "参数id", width = 15)
    @ApiModelProperty(value = "参数id")
    private String parameterId;

    /**参数PLCid*/
    @Excel(name = "参数PLCid", width = 15)
    @ApiModelProperty(value = "参数PLCid")
    private String parameterPlcId;

	/**参数名称*/
	@Excel(name = "参数名称", width = 15)
    @ApiModelProperty(value = "参数名称")
    private String parameterName;
	/**参数类别*/
	@Excel(name = "参数类别", width = 15, dicCode = "parameter_class")
	@Dict(dicCode = "parameter_class")
    @ApiModelProperty(value = "参数类别")
    private String parameterType;

    /**PLC变量所属二级组*/
    @Excel(name = "PLC变量所属二级组", width = 15)
    @ApiModelProperty(value = "PLC变量所属二级组")
    private String parameterSecondtype;

    /**PLC变量地址*/
    @Excel(name = "PLC变量地址", width = 15)
    @ApiModelProperty(value = "PLC变量地址")
    private String paramAddress;

    /**PLC数据类型*/
    @Excel(name = "PLC数据类型", width = 15)
    @ApiModelProperty(value = "PLC数据类型")
    private String parameterDatatype;


    /**PLC变量参考值*/
    @Excel(name = "PLC变量参考值", width = 15)
    @ApiModelProperty(value = "PLC变量参考值")
    private String paramRefvalue;

    /**PLC变量参考值*/
    @Excel(name = "PLC变量单位", width = 15)
    @ApiModelProperty(value = "PLC变量单位")
    private String parameterUnit;

    /**参数定义组别*/
    @Excel(name = "参数定义组别", width = 15, dicCode = "parameter_group")
    @Dict(dicCode = "parameter_group")
    @ApiModelProperty(value = "参数定义组别")
    private String parameterGroup;

	/**位号*/
	@Excel(name = "位号", width = 15)
    @ApiModelProperty(value = "位号")
    private String locationNumber;
	/**配置人员角色*/
	@Excel(name = "配置人员角色", width = 15)
    @ApiModelProperty(value = "配置人员角色")
    private String configRoles;
	/**实际参数取值范围*/
	@Excel(name = "实际参数取值范围", width = 15)
    @ApiModelProperty(value = "实际参数取值范围")
    private String parameterActualRange;
	/**控件类型*/
	@Excel(name = "控件类型", width = 15)
    @ApiModelProperty(value = "控件类型")
    private String controlType;
	/**控件值*/
	@Excel(name = "控件值", width = 15)
    @ApiModelProperty(value = "控件值")
    private String controlValue;
	/**是否必填*/
	@Excel(name = "是否必填", width = 15)
    @ApiModelProperty(value = "是否必填")
    private String controlRequired;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**扩展日期字段*/
	@Excel(name = "扩展日期字段", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "扩展日期字段")
    private Date extDate;
	/**扩展日期字段1*/
	@Excel(name = "扩展日期字段1", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "扩展日期字段1")
    private Date extDate1;
	/**扩展数字字段*/
	@Excel(name = "扩展数字字段", width = 15)
    @ApiModelProperty(value = "扩展数字字段")
    private BigDecimal extNumber;
	/**扩展数字字段1*/
	@Excel(name = "扩展数字字段1", width = 15)
    @ApiModelProperty(value = "扩展数字字段1")
    private BigDecimal extNumber1;
	/**扩展数字字段2*/
	@Excel(name = "扩展数字字段2", width = 15)
    @ApiModelProperty(value = "扩展数字字段2")
    private BigDecimal extNumber2;
	/**扩展字符字段*/
	@Excel(name = "扩展字符字段", width = 15)
    @ApiModelProperty(value = "扩展字符字段")
    private String extText;
	/**扩展字符字段1*/
	@Excel(name = "扩展字符字段1", width = 15)
    @ApiModelProperty(value = "扩展字符字段1")
    private String extText1;
	/**扩展字符字段2*/
	@Excel(name = "扩展字符字段2", width = 15)
    @ApiModelProperty(value = "扩展字符字段2")
    private String extText2;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**多租户标识*/
	@Excel(name = "多租户标识", width = 15)
    @ApiModelProperty(value = "多租户标识")
    private String tenantId;
	/**删除状态*/
	@Excel(name = "删除状态", width = 15)
    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private Integer delFlag;
	/**版本*/
	@Excel(name = "版本", width = 15)
    @ApiModelProperty(value = "版本")
    private Integer version;
	/**租户业务隔离ID*/
	@Excel(name = "租户业务隔离ID", width = 15)
    @ApiModelProperty(value = "租户业务隔离ID")
    private String tenantBusinessId;

    /**是否修正变量*/
    @Excel(name = "是否修正变量", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否修正变量")
    private Integer isRevise;
}
